﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once        
#include "IFamilyConstraint.h"
#include "GmFamilyService.h"

namespace gfam
{
    /// \brief  约束组
    class GM_FAMILY_SERVICE_EXPORT IFamilyConstraintGroup : public IFamilyEntity
    {
        DEFINE_CAST_DERIVED(gfam::IFamilyConstraintGroup, gfam::IFamilyEntity)
    public:
        /// \brief  获取所有约束id
        ///
        /// \return 所有约束id
        virtual std::vector<gcmp::ElementId> GetConstraintObjects() const = 0;

        /// \brief  添加约束
        ///
        /// \param id 约束id
        /// \return 操作成功返回true,否则返回false
        virtual bool AddConstraintObject(const gcmp::ElementId&id) = 0;
    };
}